package com.gitee.jmliu1983.test;


import java.text.DateFormat;

import java.util.Date;
import java.util.Locale;

import com.gitee.jmliu1983.javautils.DatetimeUtils;

public class TestDateParser {
//	@Test
	public void testRandomAccess() {
//		String isoDateString = "2023-10-05T14:30:00+02:00"; 
		String isoDateString = "2023-10-05T16:00:00.000Z"; 
		Date dt = DatetimeUtils.parseISODate(isoDateString);
//		System.out.println(dt.toGMTString());
		System.out.println(DateFormat.getDateInstance(DateFormat.FULL, Locale.US).format(dt));
		System.out.println(DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.CHINA).format(dt));
		System.out.println(DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, Locale.SIMPLIFIED_CHINESE ).format(dt));
		System.out.println(DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM, Locale.ENGLISH ).format(dt));
//		System.out.println(dt.toLocaleString());
		
	}
}
